import request from '@/utils/request'

// 查询平台优惠券列表
export function listCouponReal(query) {
  return request({
    url: '/business/couponReal/list',
    method: 'get',
    params: query
  })
}

// 查询平台优惠券详细
export function getCouponReal(id) {
  return request({
    url: '/business/couponReal/' + id,
    method: 'get'
  })
}

// 新增平台优惠券
export function addCouponReal(data) {
  return request({
    url: '/business/couponReal',
    method: 'post',
    data: data
  })
}

// 修改平台优惠券
export function updateCouponReal(data) {
  return request({
    url: '/business/couponReal',
    method: 'put',
    data: data
  })
}

// 删除平台优惠券
export function delCouponReal(id) {
  return request({
    url: '/business/couponReal/' + id,
    method: 'delete'
  })
}
